#ifndef GAMEPADVALUE_H
#define GAMEPADVALUE_H

#include <QObject>

class GamepadValue : public QObject
{
    Q_OBJECT
public:
    explicit GamepadValue(QObject *parent = nullptr);
    double leftX;
    double leftY;   //左摇杆
    double rightX;
    double rightY;  //右摇杆
    bool left0;
    bool right0;    //左右摇杆按下

    bool left1;
    bool right1;    //左右肩键
    double left2;
    double right2;  //左右扳机

    bool up;
    bool down;
    bool left;
    bool right;     //方向键区

    bool X;
    bool Y;
    bool A;
    bool B;         //技能键区

    bool guide;
    bool select;
    bool start;     //引导键区

    void SetBoolValue(int Chanel, bool value);
    void SetDoubleValue(int Chanel, double value);
signals:

};

#endif // GAMEPADVALUE_H
